<?php

include_once 'db.php';

/*
每日登录用户量
用户电脑配置
行为统计
*/

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>太阳花浏览器统计分析</title>
</head>
<body>

<p><?php 
	date_default_timezone_set('UTC');
	$now = date("Y-m-d H:i:s");
	echo "UTC: $now";
?>
</p>

<p>
<b>用户量:
<?php

$db = new dbConnect();
$info = $db->fetch_array("select count(distinct(clientid)) as installed from logentry");

echo $info['installed'];

?>
</b>
</p>
 
<p>
<b>当天登录用户量:</b>
</p>

</body>

</html>